{% extends "base.html" %}

{% block title %} {{entry.title|escape}} - {{blog.title|escape}} {% endblock %}

{% block head_block %}

{% if entry %}
{%if entry.strtags%}<meta name="Keywords" content="{{entry.strtags|escape}}" />{%endif%}
{%if entry.excerpt%} <meta name="Description" content="{{entry.excerpt|escape}}" />{%endif%}
{% endif %}
<link rel="stylesheet" href="/static/styles/album.css" type="text/css" media="screen" />
<script>
			$(document).ready(function(){

				$(".downloadpage").colorbox({width:"50%", inline:true, href:"#inline"});
			});
		</script>

{% endblock %}


{% block content %}


	<div id="main">
		<div id="maincontent"><div class="forFlow">
		{% if entry %}
			<div class="post" id="post-{{entry.key}}">
				<h2 class="post-title"><a href="{{entry.Link_url|escape}}" rel="bookmark" title="{{ entry.title|escape }}">{{ entry.title|escape }}</a></h2>
				<div class="postmetadata-top">
                                <span><a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count" data-locale="zh_CN" data-url="{{entry.fullurl|escape}}"  data-message="{{ entry.title|escape }}"></a>
<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></span>
					<span class="post-comments"><a href="{{entry.Link_url|escape}}#comments">{{entry.commentcount}} 条评论</a></span>
					<span class="post-date">{{entry.date|datetz:"Y/m/d H:i"}}</span>
					<span class="post-views"><a href="{{entry.Link_url|escape}}">{{entry.readtimes}} 次阅读</a></span>
				</div>
				<div class="entry">
					{{ entry.content }}
					<p><b>转载请注明：来自</b><a href="{{blog.baseurl}}" title="{{blog.title|escape}}">{{blog.title|escape}}</a>
					<br/><b>本文地址：</b><a href="{{entry.fullurl|escape}}" title="{{ entry.title|escape }}">{{entry.fullurl|escape}}</a></p>
				</div>
				<div class="postmetadata">
					<span class="post-cat">分类:
						{%for cate in entry.categories%} <a href="{{cate.Link_url}}">{{cate.name}}</a> {%endfor%}
					</span>

					<span class="post-cat">
						<a class="downloadpage" href="#" > Download </a>
					</span>

					{% if entry.tags%}
					<span class="post-tag">标签:
						{%for tag in entry.tags%}
							<a href="{{tag.Tagurl|urlencode}}">{{tag}}</a>&nbsp;{%endfor%}</span>
					{%endif%}
				</div>
			</div>
			<div class="navigation">
				{%for prev in entry.prev%}
					<span class="previous"><a href="{{prev.Link_url}}">{{prev.title}}</a></span>
				{%endfor%}
				{%for next in entry.next%}
					<span class="next"><a href="{{next.Link_url}}">{{next.title}}</a></span>
				{%endfor%}
			</div>

			<div class="related">
				<h4>相关文章</h4>
				{% if relateposts %}
				<ul>
				{%for post in relateposts%}
					<li><a href="{{post.Link_url|escape}}">{{post.title|escape}}</a> - {{post.date|datetz:"Y/m/d"}}</li>
				{%endfor%}
				</ul>
				{% endif %}
			</div>

		{% include "comments.html" %}

		{% else %}
			<h2 class="center">Not Found</h2>
			<p class="center">不好意思，您所查看的内容不再这里，您可以通过侧栏搜索工具查一下。</p>
		{% endif %}

		</div></div>

		{% include "dsidebar.html" %}
	</div>
	<div style="display:none">
  <div id="inline">
    <div class="part"> <strong>下载声明：</strong>
      <div class="part_content">
        <p> 1. 本站所有软件和资料均为软件作者提供或网友推荐发布而来，仅供学习和研究使用，不得用于任何商业用途。如本站不慎侵犯你的版权请<a href="/contact">联系我</a>，我将及时处理，并撤下相关内容！ </p>
        <p> 2. 访问本站的用户必须明白，本站对所提供下载的软件和程序代码不拥有任何权利，其版权归该软件和程序代码的合法拥有者所有，请用户在下载使用前必须详细阅读并遵守软件作者的&quot;使用许可协议&quot;。本站仅仅是一个软件使用交流的平台。 </p>
      </div>
    </div>
    <div class="part"> <strong>文件信息：</strong>
      <div class="part_content">
        <div style="float:left;">
          <p>文件名称：{{entry.title}}</p>
          <p>文件大小：{{entry.downloadsize}} MB</p>
          <p>上传日期：{{entry.date}}</p>
        </div>
      </div>
      <div style="clear:both"></div>
    </div>
    <div class="part" style="text-align:center">
      <h2 style="font-size:12px;margin: 0px;"><a href="{{entry.Link_url}}">去{{blog.titile}}看看关于{{entry.title}} 的详细介绍文章</a></h2>
    </div>
    <div class="part"> <strong>下载地址：</strong> | </div>
    <div style="padding-top:10px">如无特殊说明，本文件解压密码为：<font color="red">{{blog.baseurl}}</font>，使用WinRAR打开压缩包亦可看到密码。</div>
  <div> <a href="{{entry.downloadurl}}" target="_blank" title="Please Click"> Download </a> </div>
</div>
</div>
{% endblock %}
